-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding slack notifier #9076 #9350
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9350 +/- ##
===========================================
- Coverage 79.06% 61.38% -17.68%
===========================================
Files 401 352 -49
Lines 122495 116276 -6219
===========================================
- Hits 96846 71378 -25468
- Misses 25649 44898 +19249
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't able to manually test this myself, but after reading through the slack documentation and PR it looks correct. And since it's disabled by default this is very low risk. It would be nice to include in the zed(8)
man page a brief explanation on how to configure the available notifications (email, pushbullet, slack). I don't think that needs to block this PR, but it would be wonderful is someone tackled writing this up.
@bmcgough would you please add your "Signed-off-by" to the commit when addressing the small nit. See https://github.com/zfsonlinux/zfs/blob/master/.github/CONTRIBUTING.md#signed-off-by for details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few nits, otherwise this will be very useful, thanks!
Signed-off-by: Ben McGough [email protected] |
@richardelling @freqlabs if you're OK with the code as-is would you mind approving this PR. |
@bmcgough merged, thanks for taking the time to contribute this additional notifier! |
Adding slack webhook notifier - clone of pushbullet mostly
Motivation and Context
Allow ZED notification via slack incoming webhook
#9076
Description
Copied and updated pushbullet function to change message format and url for slack.
How Has This Been Tested?
I've installed on vanilla system with ZED_SLACK_WEBHOOK_URL set, and verified messaging was successful.
ZFS 0.8.0 on Ubuntu 18.04
I updated comments in associated files, but do not find any documentation about pushbullet, so did not update.
Types of changes
Checklist:
Signed-off-by
.